package com.googlecode.messwertepi;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.googlecode.messwertepi.gui.MainWindow;
import com.googlecode.messwertepi.input.KeyboardInputReader;
import com.googlecode.messwertepi.module.MainModule;
import com.googlecode.messwertepi.services.InputService;

/**
 * Created by eike on 22.06.14.
 */
public class Main
{
    public static void main(String[] args) throws Exception
    {
        Injector injector = Guice.createInjector(new MainModule());

        // show the application main window
        MainWindow mainWindow = injector.getInstance(MainWindow.class);
        mainWindow.show();

        InputService service = injector.getInstance(InputService.class);
        //KeyboardInputReader reader = injector.getInstance(KeyboardInputReader.class);
        //new Thread(reader).start();
    }
}
